﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="AnyOffice.general.vehicle.maintenance.edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>修改维护记录</title>
		
		<link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
		<script src="/module/date_selector/popcalendar.js"></script>
		<script src="/aspnet_client/core/function.js"></script>
		<script Language="JavaScript">
function CheckForm()
{
	if(document.getElementById("ddlVehicleId").value=="")
   {
     alert("请指车辆！");   
     return (false);
   }
   
   	if(!checkIsDate(document.getElementById("txtRequestDate").value))
	{
		alert("维护日期不正确！");
		document.getElementById("txtRequestDate").focus();
		return (false);
	}	
	
   if (!checkIsDouble(document.getElementById("txtFee").value))
   {
		alert("维护费用应为数字！");
		document.getElementById("txtFee").focus();
		return (false);
   }   

  return true;
}

		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG height="20" src="/images/notify_new.gif"><SPAN class="big3">&nbsp;修改维护记录</SPAN>
						</TD>
					</TR>
				</TABLE>
				<BR>
				<TABLE class="small" cellSpacing="1" cellPadding="2" width="550" align="center" bgColor="#000000"
					border="0">
					<TR>
						<TD class="TableData" noWrap width="80">车 牌 号：</TD>
						<TD class="TableData" colSpan="3">
							<asp:DropDownList id="ddlVehicleId" runat="server" CssClass="BigSelect"></asp:DropDownList></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap width="80">维护日期：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtRequestDate" runat="server" CssClass="BigInput" MaxLength="10" Columns="12"></asp:TextBox><IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtRequestDate,'yyyy-mm-dd','');"
								src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
						</TD>
						<TD class="TableData" noWrap width="80">维护类型：</TD>
						<TD class="TableData" width="130">
							<asp:DropDownList id="ddlType" runat="server" CssClass="BigSelect">
								<asp:ListItem Value="维修">维修</asp:ListItem>
								<asp:ListItem Value="加油">加油</asp:ListItem>
								<asp:ListItem Value="洗车">洗车</asp:ListItem>
								<asp:ListItem Value="年检">年检</asp:ListItem>
								<asp:ListItem Value="其它">其它</asp:ListItem>
							</asp:DropDownList></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap width="80">维护原因：</TD>
						<TD class="TableData" colSpan="3">
							<asp:TextBox id="txtReason" runat="server" CssClass="BigInput" Columns="60" TextMode="MultiLine"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap width="80">经 办 人：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtPerson" runat="server" CssClass="BigInput" MaxLength="20" Columns="12"></asp:TextBox></TD>
						<TD class="TableData" noWrap width="80">维护费用：</TD>
						<TD class="TableData" width="130">
							<asp:TextBox id="txtFee" runat="server" CssClass="BigInput" MaxLength="12" Columns="12"></asp:TextBox> 元</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap width="80">备 注：</TD>
						<TD class="TableData" colSpan="3">
							<asp:TextBox id="txtRemark" runat="server" CssClass="BigInput" Columns="60" TextMode="MultiLine"></asp:TextBox></TD>
					</TR>
					<TR class="TableControl">
						<TD noWrap align="center" colSpan="4">&nbsp; <INPUT class="BigButton" onclick="return  CheckForm();" type="submit" value="保存">&nbsp;&nbsp;
							<INPUT class="BigButton" type="reset" value="重填">&nbsp;&nbsp;
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
